package com.ysd.houtaiservlet;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.ysd.dao.impl.BannerDao;

/**
 * Servlet implementation class bannersqladd
 */
@WebServlet("/bannersqladd")
public class bannersqladd extends HttpServlet {
	BannerDao dao=new BannerDao();
	public void service(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException {
		request.setAttribute("u",dao.getAll());
		request.getRequestDispatcher("houtai/banberadd.jsp").forward(request, response);
	}
}
